#include "cpu/exec/template-start.h"

#define instr test

static void do_execute() {
	DATA_TYPE result = op_dest->val & op_src->val; //AND
	cpu.eflags.CF=0;//进位标志
	cpu.eflags.OF=0;//溢出标志   清零

	cpu.eflags.SF = MSB(result);//符号标志，最高符号位

    cpu.eflags.ZF=!result;//零标志

	result ^= result >>4;//10011100
	result ^= result >>2;//00001001   //10010101
	result ^= result >>1;             //00100101      			 //10110000
	cpu.eflags.PF=!(result & 1);//奇偶校验标志,只检查最低位 
}

make_instr_helper(i2a)
make_instr_helper(i2rm)
make_instr_helper(r2rm)
#include "cpu/exec/template-end.h"